/*访问后台的代码*/
layui.define([], function(exports) {
    var api = {
        updateCom : function(form, callback) {
            Lib.submitForm("/admin/com/update.json", form, {}, callback)
        },
        addCom : function(form, callback) {
            Lib.submitForm("/admin/com/add.json", form, {}, callback)
        },
        del : function(ids, callback) {
            Common.post("/admin/com/delete.json", {
                "ids" : ids
            }, function() {
                callback();
            })
        },

    };

    exports('comApi', api);

});